package com.lujieni.msg.provider.dao;

import com.lujieni.msg.provider.po.LocalEventPO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.Date;
import java.util.List;

@Repository
public interface LocalEventDao extends Mapper<LocalEventPO> {

    /**
     * 查询给定时间段内的数据
     * @param startTime
     * @param endTime
     * @return
     */
    List<LocalEventPO> selectNeedData(@Param("startTime")Date startTime, @Param("endTime")Date endTime);
}
